import request from '@/utils/request'
const GET = 'GET';
const POST = 'POST';

const ACTION = "/adminOpera";
const RECYCLE_OR_RE_BACK_ARTICLE = ACTION+"/recycleOrReBack";
const DELETE_ARTICLE = ACTION+"/del";

/**
 * 更新用户操作文章
 * @param {文章id 以及更新的状态} params 
 */
 export function recycleOrReBack(params) {
    return request({
        url: RECYCLE_OR_RE_BACK_ARTICLE,
        method: GET,
        params
    }) 
}

/**
 * 删除文章
 * @param {删除文章的id} params 
 */
 export function deleteArticle(params) {
    return request({
        url: DELETE_ARTICLE,
        method: GET,
        params
    }) 
}